﻿<Window x:Class="AutoLoL.Updater.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="AutoLoL - Updater"
        Icon="/Icon.ico"
        Height="400" Width="600">
    <DockPanel LastChildFill="True" Margin="10">
        <Button Name="LaunchButton" Content="AutoLoL" DockPanel.Dock="Bottom" Width="70" Height="23" ToolTip="Launch AutoLoL" HorizontalAlignment="Left" Margin="0 10 0 0" Click="AutoLoLButton_Click" />
        <Button Name="RestartButton" Content="Restart" DockPanel.Dock="Bottom" Width="70" Height="23" ToolTip="Restart updater" HorizontalAlignment="Left" Margin="0 10 0 0" Click="RestartButton_Click" />
        <StackPanel Name="WaitStackPanel" Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Left" Margin="0 10 0 0">
            <Viewbox Width="22" Height="22">
                <Canvas Width="50.1273" Height="50.1273">
                    <Rectangle Width="5.5" Height="13.1146" Canvas.Left="22" Canvas.Top="3" Stretch="Fill" Fill="#FF000000"/>
                    <Rectangle Width="5.5" Height="13.1146" Canvas.Left="22" Canvas.Top="35" Stretch="Fill" Fill="#67000000"/>
                    <Rectangle Width="13.1146" Height="5.5" Canvas.Left="35" Canvas.Top="22" Stretch="Fill" Fill="#B3000000"/>
                    <Rectangle Width="13.1146" Height="5.5" Canvas.Left="3" Canvas.Top="22" Stretch="Fill" Fill="#1B000000"/>
                    <Path Width="13.1625" Height="13.1625" Canvas.Left="30" Canvas.Top="7" Stretch="Fill" Fill="#D9000000" Data="F1 M 27.2898,13.9357L 31.1788,17.8248L 40.4523,8.55142L 36.5632,4.66233L 27.2898,13.9357 Z "/>
                    <Path Width="13.1625" Height="13.1625" Canvas.Left="7" Canvas.Top="30" Stretch="Fill" Fill="#42000000" Data="F1 M 4.66235,36.5632L 8.55143,40.4523L 17.8248,31.1788L 13.9358,27.2898L 4.66235,36.5632 Z "/>
                    <Path Width="13.1625" Height="13.1625" Canvas.Left="30" Canvas.Top="30" Stretch="Fill" Fill="#8D000000" Data="F1 M 31.1789,27.2897L 27.2898,31.1788L 36.5632,40.4522L 40.4523,36.5632L 31.1789,27.2897 Z "/>
                    <Path Width="13.1625" Height="13.1625" Canvas.Left="7" Canvas.Top="7" Stretch="Fill" Fill="#11000000" Data="F1 M 8.55143,4.66233L 4.66234,8.55142L 13.9358,17.8248L 17.8248,13.9357L 8.55143,4.66233 Z "/>
                    <Canvas.RenderTransform>
                        <RotateTransform x:Name="MyRotateTransform" Angle="0" CenterX="25.06" CenterY="25.06" />
                    </Canvas.RenderTransform>
                    <Canvas.Triggers>
                        <EventTrigger RoutedEvent="Canvas.Loaded">
                            <BeginStoryboard>
                                <Storyboard>
                                    <DoubleAnimation Storyboard.TargetName="MyRotateTransform" Storyboard.TargetProperty="(RotateTransform.Angle)" From="0" To="360" Duration="0:0:2" RepeatBehavior="Forever" />
                                </Storyboard>
                            </BeginStoryboard>
                        </EventTrigger>
                    </Canvas.Triggers>
                </Canvas>
            </Viewbox>
            <TextBlock Text="Please wait for the updater to finish..." VerticalAlignment="Center" Margin="10 0 0 0" />
        </StackPanel>
        <TextBox Height="Auto" VerticalContentAlignment="Top" IsReadOnly="True" VerticalScrollBarVisibility="Visible" TextWrapping="Wrap" Name="StatusTextBox" />
    </DockPanel>
</Window>
